import 'package:flutter/material.dart';
import 'package:learning_content_admin_pannel.core/core/presentation/helpers/markdown_builder.dart';
import 'package:learning_content_admin_pannel.core/core/presentation/theme/styles.dart';
import 'package:learning_content_admin_pannel.core/core/presentation/theme/theme.dart';

part 'theme/styles.dart';

part 'theme/text_theme.dart';

part 'theme/theme.dart';

part 'view.dart';

class AppMarkdownTextField extends StatelessWidget {
  const AppMarkdownTextField({
    required this.markdown,
    this.width,
    this.maxLines,
    super.key,
  });

  final String markdown;
  final double? width;
  final int? maxLines;

  @override
  Widget build(BuildContext context) {
    return _AppMarkdownTextFieldTheme(
      brightness: CoreTheme.of(context).brightness,
      child: _AppMarkdownTextFieldView(
        markdown: markdown,
        width: width,
        maxLines: maxLines,
      ),
    );
  }
}
